<?php
require "web.config.php";
 class userController
 {
     //------------------------------前端
      //-----------------主页
     //首页
   function userinfo($param){   
   	global $m;
  $openid=getSession($m->data['qq']);
$user= show('user',$openid,'openid'); 

$lv=getLevel($user['points']);
        include view(__ROOT__,str_replace('Controller','',__CLASS__),__FUNCTION__,'homeShare');//加载视图   
}     
    
  
 
  function setup($param){   

        include view(__ROOT__,str_replace('Controller','',__CLASS__),__FUNCTION__,'homeShare');//加载视图   
}     


static $payObj='config_com';

 function pay($param){   
global $m,$_gp,$_df;
//自定义金额打赏
if(!empty($_POST)){
		   //订单名称，必填
    $subject = '打赏一下';
    //付款金额，必填
   $total_amount = trim($_POST['WIDtotal_amount']);
    //商品描述，可空
   $body = trim($_POST['WIDbody']);
    
    $config_url=self::$payObj;
    

  pay($subject,$total_amount,$body,$config_url,1);
}
$name='打赏';
$output['WIDbody']='留言';

        include view(__ROOT__,str_replace('Controller','',__CLASS__),__FUNCTION__,'NullShare');//加载视图   
}  


  
}
 
 
 
?>